<?php

namespace app\admin\validate;

use think\Validate;

class LocationDetail extends Validate {

        protected $rule = [
            'location_id' => 'unique:location_detail',
        ];
        protected $message = [
            'location_id.unique' => '地区已存在',
        ];
        protected $scene = [
            'edit' => ['location_id'],
            'add'  => ['location_id']
        ];

}
